package com.yanlight.app.controller;


import com.yanlight.Constants;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/active")
public class ActiveController {

    @GetMapping("/applyMoney")
    @ResponseBody
    public ModelAndView applyMoney(ModelAndView modelAndView, Long companyId) {
        modelAndView.setViewName(Constants.ACTIVE_VIEW);
        modelAndView.addObject("companyId", companyId);
        return modelAndView;
    }

}
